package com.hxxy.wyp.petsLover.common.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hxxy.wyp.petsLover.common.entities.vo.req.HomeInfoReq;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserShare {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String shareName;
    private String shareContent;
    private String shareArea;
    private LocalDateTime shareTime;
    private String sharePic;
    private Long shareView;
    private Long userShareCommentId;
    private String status;
    private Long shareAlike;

    private Long userId;

    @TableField(exist = false)
    private List<String> sharePicList;

    @TableField(exist = false)
    private User user;
    /**
     *  接收用户分享上传图片
     */
    @TableField(exist = false)
    private List<HomeInfoReq> fileList;

}
